<!--
代码为自动生成 Created by www.magicalcoder.com
 软件作者：何栋宇 qq:709876443
 如果你改变了此类 read 请将此行删除
 欢迎加入官方QQ群:648595928
-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head  th:include="magicalcoder/v103/include/head :: commonHead('商品编辑')"/>

<body class="childrenBody layui-hide">
<!--请不要删除magicaldrag注释标签，可以配合布局器进行联动布局-->
<!--magicaldrag-->
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-card-header">

            </div>
            <div class="layui-card-body">
                <form class="layui-form">
                    <div class="layui-form-item security_edit_form_param_id">
                        <label class="layui-form-label">主键</label>
                        <div class="layui-input-block">
                            <input type="text" disabled="true" class="layui-input" name="id"  placeholder="主键自动生成，无需手动编辑,如果重置则变成增加数据"/>
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_goodsName">
                        <label class="layui-form-label">商品名</label>
                        <div class="layui-input-block">
                        <input type="text" class="layui-input" name="goodsName" placeholder="请输入商品名" lay-verify="magicalCoderVerify|mc_required" magicalcoder-verify="|minLength=0" value="" />
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_publishStatus">
                        <label class="layui-form-label">是否发布</label>
                        <div class="layui-input-block">
                        <input type="checkbox" name="publishStatus" lay-skin="switch" lay-text="启用|禁用" lay-verify="magicalCoderVerify" magicalcoder-verify="|minLength=0"  />
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_createTime">
                        <label class="layui-form-label">创建时间</label>
                        <div class="layui-input-block">
                        <input type="text"  name="createTime" placeholder="请输入创建时间"  autocomplete="off" class="magicalcoder-laydate layui-input" lay-verify="magicalCoderVerify" magicalcoder-verify="|minLength=0" value=""  mc-attr-calendar="false" mc-attr-format="yyyy-MM-dd HH:mm:ss" mc-attr-show="false" mc-attr-range="false" mc-attr-trigger="click" mc-attr-type="datetime" mc-attr-is-init-value="true" mc-attr-show-bottom="true" mc-attr-theme="default" mc-attr-position="absolute" mc-attr-lang="cn" mc-attr-z-index="66666666" />
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_goodsStatus">
                        <label class="layui-form-label">商品状态</label>
                        <div class="layui-input-block">
                        <select name="goodsStatus" class="layui-input" lay-verify="magicalCoderVerify" magicalcoder-verify="|minLength=0"  placeholder="请输入商品状态">
                             <option value="" selected="selected">请选择</option>
                             <option value="0" >下架</option>
                             <option value="1" >上架</option>
                        </select>
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_price">
                        <label class="layui-form-label">价格</label>
                        <div class="layui-input-block">
                        <input type="text" class="layui-input" name="price" placeholder="请输入价格" lay-verify="magicalCoderVerify|mc_required|mc_number" magicalcoder-verify="|minLength=0" value="" />
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_storeCount">
                        <label class="layui-form-label">库存</label>
                        <div class="layui-input-block">
                        <input type="text" class="layui-input" name="storeCount" placeholder="请输入库存" lay-verify="magicalCoderVerify|mc_required|mc_number" magicalcoder-verify="|minLength=0" value="" />
                        <div class="magicalcoder-slider" name="storeCountSlider" mc-attr-input="false" mc-attr-min="0" mc-attr-max="1000" mc-attr-showstep="false" mc-attr-range="false" mc-attr-step="1" mc-attr-theme="#009688" mc-attr-type="default" mc-attr-tips="true" mc-attr-height="200" ></div>
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_goodsDescription">
                        <label class="layui-form-label">商品描述</label>
                        <div class="layui-input-block">
                        <textarea id="goodsDescription" name="goodsDescription" placeholder="请输入商品描述"   class="magicalcoder-layedit layui-textarea layui-hide" lay-verify="goodsDescriptionVerifyEdit|magicalCoderVerify" magicalcoder-verify="|minLength=0" ></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_shortBrief">
                        <label class="layui-form-label">简介</label>
                        <div class="layui-input-block">
                        <textarea name="shortBrief" placeholder="请输入简介" class="layui-textarea" lay-verify="magicalCoderVerify" magicalcoder-verify="|minLength=0" ></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_updateTime">
                        <label class="layui-form-label">更新时间</label>
                        <div class="layui-input-block">
                        <input type="text"  name="updateTime" placeholder="请输入更新时间"  autocomplete="off" class="magicalcoder-laydate layui-input" lay-verify="magicalCoderVerify" magicalcoder-verify="|minLength=0" value=""  mc-attr-calendar="false" mc-attr-format="yyyy-MM-dd HH:mm:ss" mc-attr-show="false" mc-attr-range="false" mc-attr-trigger="click" mc-attr-type="datetime" mc-attr-is-init-value="true" mc-attr-show-bottom="true" mc-attr-theme="default" mc-attr-position="absolute" mc-attr-lang="cn" mc-attr-z-index="66666666" />
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_imgSrc">
                        <label class="layui-form-label">商品图片</label>
                        <div class="layui-input-block">
                        <a name="imgSrcFileUpload" class="magicalcoder-layupload layui-btn a_imgSrc " mc-attr-auto="true" mc-attr-accept-mime="images" mc-attr-multiple="false" mc-attr-drag="true" mc-attr-exts="jpg|png|gif|bmp|jpeg" mc-attr-accept="images" >
                            <i class="layui-icon" >&#xe67c;</i>上传文件或图片
                        </a>
                        <input class=" layui-input" name="imgSrc" type="text" lay-verify="magicalCoderVerify" magicalcoder-verify="|minLength=0" value=""  placeholder="请输入商品图片" />
                        <div class="layui-upload-list">
                            <img class="layui-textarea layui-upload-img img_imgSrc" />
                        </div>
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_goodsCategoryId">
                        <label class="layui-form-label">商品分类</label>
                        <div class="layui-input-block">
                        <select name="goodsCategoryId"  data-url="admin/goods_category_rest/search" data-id="id" data-text-fields="name" class="magicalcoder-foreign-select2 layui-input" lay-ignore="true" lay-verify="magicalCoderVerify|mc_required" magicalcoder-verify="|minLength=0" data-value=""  placeholder="请输入商品所属分类" data-limit="20"><option value=""></option></select>
                        </div>
                    </div>
                    <div class="layui-form-item ">
                        <div class="layui-input-block">
                            <a class="layui-btn security_edit_form_operate_save" lay-submit="" lay-filter="save">立即提交</a>
                            <button type="reset" class="layui-hide layui-btn layui-btn-primary" >重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
<!--/magicaldrag-->
    <div th:replace="magicalcoder/v103/include/main-js :: commonMain" />
    <script type="text/javascript"  th:src="@{/assets/admin/goods/edit.js}"></script>
</body>
</html>
